package com.cupdata.marathon.bean;

import lombok.Data;

@Data
public class ResultGenerator<T> {


    public static Result genErrorResult(String s, String defaultMessage) {
        return new Result(s, defaultMessage);
    }

    public static Result genErrorResult( String defaultMessage) {
        return new Result(defaultMessage);
    }
}
